Skip to content

Conversation

@bangyro
Copy link
Collaborator

@bangyro bangyro commented Jan 14, 2026

No description provided.

expect(result).instanceOf(TransactionMetadata);
});

it("zap in without external swap with rate limiter and remaining accounts", async () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing without external swap since we're validating for single_swap and the external swap would result in multiple swap

position,
positionNftAccount,
preSqrtPrice: poolState.sqrtPrice,
maxSqrtPriceChangeBps: U32_MAX.toNumber(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The price change ends up really big. Putting it to max avoids the tx from erroring out due to slippage.

@bangyro bangyro marked this pull request as ready for review January 14, 2026 08:43
@andrewsource147 andrewsource147 merged commit 020f3d2 into release_0.2.1 Jan 14, 2026
3 checks passed
@andrewsource147 andrewsource147 deleted the fix/zap-in-dammv2-missing-instructions-sysvar branch January 14, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants